<script type="text/javascript">
    $(function () {
        $("#add_tab")
            .button()
            .click(function () {
                T.Aplicacion.submit('<?php echo site_url($crear);?>');
                return false;
            });
    });
</script>
<div id="all-productos">
    <form action="" method="post" name="form" id="form">
        <h2><?php echo $titulo;?></h2>
        <br/>
        <table width="70%" cellspacing="0" cellpadding="2" border="0">
            <tbody>
            <tr>
                <td colspan="2">
                    <button id="add_tab">Agregar</button>
                </td>
            </tr>
            <tr style="height: 20px"><td colspan="2"></td></tr>
            <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent"><b>Titulo</b></td>
                <td align="right" class="dataTableHeadingContent"><b>Acción&nbsp;</b></td>
            </tr>

            <tr><td colspan="2"></td></tr>
            <?php foreach ($registros as $item): ?>
                <tr class="dataTableRow">
                    <td align="left" class="dataTableContent">
                        <?php echo $item["titulo"]; ?>
                    </td>
                    <td align="right" class="dataTableContent">
                        <a href='<?php echo site_url($editar."/" . $item["cod_blog"]);?>'><img
                                border="0" title=" Datos " alt="Datos" src="/imagenes/iconos/edit.gif"></a>&nbsp;
                        <a href='<?php echo site_url($eliminar."/" . $item["cod_blog"]);?>'><img
                                border="0" title=" Datos " alt="Datos" src="/imagenes/iconos/delete.gif"></a>&nbsp;
                    </td>
                </tr>
            <?php endforeach;?>
            <tr>
                <td colspan="3">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <script type="text/javascript">
        $(document).ready(function () {

        });
    </script>
</div>
